package com.mediacloud.app.newsmodule.activity

import com.mediacloud.app.reslib.enums.XKey
import com.tencent.mmkv.MMKV

object VideoSeekKit {
    @JvmStatic
    fun addHisSeek(id: String, position: Long) {
        MMKV.mmkvWithID(XKey.VIDEO_SEEK_KEY).putLong(id, position)
    }
    @JvmStatic
    fun getHisSeek(id: String): Long {
        return MMKV.mmkvWithID(XKey.VIDEO_SEEK_KEY).getLong(id, 0)
    }
    @JvmStatic
    fun clearHisSeek(id: String) {
        MMKV.mmkvWithID(XKey.VIDEO_SEEK_KEY).remove(id)
    }
}